<?php

namespace lico\Tool;

class Log
{

    public function __construct()
    {
    }

    /**
     * 写入日志
     */
    public static function save($module = 'all', $msg = '', $filename = 'error')
    {
        $logType = constant("SYSCONFIG")['Log']['type'];
        $logType = ucfirst(strtolower($logType));

        $namespace = __CLASS__ . '\\' . $logType;
        // p($namespace);
        return $namespace::save($module, $msg, $filename);
    }
}
